package org.sc.learn.server.auth.repository;

import org.sc.learn.server.auth.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author qianwx
 */
public interface UserRepository extends JpaRepository<User,Long>{
  Optional<User> findOneByUsername(String username);
}
